<?php
	
// $hd = fopen("a.txt", "a");
// $fw = fwrite($hd, "\n".$content);

// $arr = $_REQUEST;
// $arr = $_GET;
// $arr = $GLOBALS["HTTP_RAW_POST_DATA"];

// $token = "kcbj123456";

// $str = json_encode($arr);
// $str = simplexml_load_string($arr);
// $str = $str->ToUserName;
// $str = $str->Content;

// $filename = "a.txt";
// $h = fopen($filename, "a");
// $w = fwrite($h, "\n".$str.$token);
// echo $w;

// echo $arr['echostr'];



$arr = $GLOBALS;

echo "<pre>";
print_r($arr);
echo "</pre>";

$str = json_encode($arr);
var_dump($str);


?>